package com.kgc.dubbo.exception;

/**
 * 商品异常信息
 */
public enum GoodsException {
    GOODS_NOT_FOUND(1101,"没有查询到相应的商品信息"),
    USER_BUY_GOODS_YET(1102,"您已经抢购过该商品了,给别人一点机会吧!"),
    GOODS_DATA_ERROR(1103,"您抢购的商品数据有误"),
    NO_GOODS_STOCK(1104,"该商品库存不足,请下次再来抢购"),
    GET_GOODS_WAIT(1105,"商品抢购中,请稍等......"),
    GOODS_SNAPUP_SUCCESS(1106,"恭喜您成功抢购到该商品");
    private Integer code;
    private String message;
    GoodsException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


}
